//
//  LJTakePhotosUtil.h
//  LajinLive
//
//  Created by 刘洋 on 16/9/6.
//  Copyright © 2016年 lajin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TZImagePickerController.h"

@interface IGTakePhotosUtil : NSObject

/**
 *  @author yangL, 16-09-06 15:09:14
 *
 *  需要调用UIImagePickerController调用拍照功能的时候使用
 *
 *  @param imagePickerBlock 回调Block
 *
 *  @since 1.3
 */
+ (void)ig_showImagePickerControllerWithImagePickerBlock:(nullable void(^)(NSDictionary<NSString *,id> * _Nullable))imagePickerBlock;

/**
 *  @author yangL, 16-09-06 18:09:04
 *
 *  同上：需要调用UIImagePickerController调用拍照功能的时候使用
 *
 *  @param sourceType       类型
 *  @param isAllowEdit      是否允许编辑
 *  @param imagePickerBlock 回调Block
 *
 *  @since 1.3
 */
+ (void)ig_showImagePickerControllerWithSourceType:(UIImagePickerControllerSourceType)sourceType isAllowEdit:(BOOL)isAllowEdit imagePickerBlock:(nullable void(^)(NSDictionary<NSString *,id> * _Nullable))imagePickerBlock;

/**
 *  @author yangL, 16-09-06 15:09:30
 *
 *  需要选择一张或者多张图片的时候调用AssetsPickerController控件
 *
 *  @param maximumNumberOfSelection 最多能选择照片的张数
 *  @param assetsPickerBlock        回调Block
 *
 *  @since 1.3
 */
+ (void)ig_showAssetsPickerControllerWithMaximumNumberOfSelection:(int)maximumNumberOfSelection assetsPickerBlock:(nullable void(^)(NSArray<UIImage *> * _Nullable))assetsPickerBlock;

/**
 *  @author yangL, 16-09-06 15:09:30
 *
 *  需要选择一张(可裁切)----头像更替使用
 *
 *  @param assetsPickerBlock        回调Block
 *
 *  @since 1.3
 */
+ (void)ig_showAssetsPickerControllerWithIsAllowEdit:(BOOL)isAllowEdit assetsPickerBlock:(nullable void(^)(NSArray<UIImage *> * _Nullable))assetsPickerBlock;

/**
 *  @author yangL, 17-03-01 17:43:30
 *
 *  需要选择一张 或者 多张图片 专供上传作品使用
 *
 *  @param assetsPickerBlock      回调Block
 *
 *  @since 2.0
 */
+ (void)ig_showAssetsForProductPickerControllerWithMaximumNumberOfSelection:(int)maximumNumberOfSelection assetsPickerBlock:(nullable void(^)(NSArray<UIImage *> * _Nullable, NSArray * _Nullable))assetsPickerBlock;

@end
